package com.example.blogother.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xpd.blog.bean.Evaluate;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xpd
 * @since 2024-09-30
 */
public interface EvaluateMapper extends BaseMapper<Evaluate> {
    @Delete("delete from evaluate where usid=#{usid} and aid=#{aid}")
    int deleteByIdInt(@Param("usid") int usid,@Param("aid") int aid);
    @Select("select * from evaluate where usid=#{usid} and aid=#{aid};")
    Evaluate selectEvaluate(@Param("usid") int usid,@Param("aid") int aid);
}
